<?php
/**
 * Matteo Vigoni <mattevigo@gmail.com>
 *
 * New Generic Release script
 */
defined( "_ENTRY_") or die( "Restricted Access" );

import("core.Release");

$db = getDB();
$user = getUser( &$db );

$location = "location: admin.php?option=add_release";

$release_id = get_var( 'release_id', 'get', NULL );

$release = new Release( &$db, $release_id ); // Release Object

try
{
	$release->doPost();
	$release->store();
}
catch( Exception $e )
{
	set_error( $e->getMessage() );
	header( $location );
	exit();
}

// SOCIAL NETWORKS /////////////////////////////////////////////////////////////////


////////////////////////////////////////////////////////////////////////////////////

header( $location );
?>